package com.wt.admin.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 博客表
 * </p>
 *
 * @author wt
 * @since 2023-08-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WqunBlog对象", description="博客表")
public class WqunBlog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标识")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "博客标题")
    private String title;

    @ApiModelProperty(value = "博客简介")
    private String summary;

    @ApiModelProperty(value = "博客内容")
    private String content;

    @ApiModelProperty(value = "标签uid")
    private String tagUid;

    @ApiModelProperty(value = "博客点击数")
    private Integer clickCount;

    @ApiModelProperty(value = "博客点赞数")
    private Integer likeCount;

    @ApiModelProperty(value = "博客收藏数")
    private Integer collectCount;

    @ApiModelProperty(value = "标题图片uid")
    private String fileUid;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "created_time",fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "修改时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modified_time",fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    @ApiModelProperty(value = "管理员uid")
    private String adminUid;

    @ApiModelProperty(value = "是否原创（0:不是 1：是）")
    private String isOriginal;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "文章出处")
    private String articlesPart;

    @ApiModelProperty(value = "博客分类UID")
    private String blogSortUid;

    @ApiModelProperty(value = "推荐等级(0:正常)")
    private Boolean level;

    @ApiModelProperty(value = "是否发布：0：否，1：是")
    private String isPublish;

    @ApiModelProperty(value = "排序字段")
    private Integer sort;

    @ApiModelProperty(value = "是否开启评论(0:否 1:是)")
    private Boolean openComment;

    @ApiModelProperty(value = "类型【0 博客， 1：推广】")
    private Boolean type;

    @ApiModelProperty(value = "外链【如果是推广，那么将跳转到外链】")
    private String outsideLink;

    @ApiModelProperty(value = "唯一oid")
    private Integer oid;

    @ApiModelProperty(value = "投稿用户UID")
    private String userUid;

    @ApiModelProperty(value = "文章来源【0 后台添加，1 用户投稿】")
    private Boolean articleSource;


}
